package com.luoqiz.security.controller;

import com.luoqiz.security.entity.User;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.Date;

@RequestMapping("/test")
public class TestController {

    @GetMapping("/user")
    public User getUser(){
        User user=new User();
        user.setId(1);
        user.setAge(15);
        user.setCreateTime(new Date());
        user.setUsername("大罗");
        user.setRemark("wokao");
        return user;
    }
}
